var express=require('express')
var Router=express.Router()

var check=require('../../tools/checkToken/index.js')
//检测token
Router.use('/check',async (req,res)=>{
	var token=await check(req)
	console.log(token)
	res.send({
		state:token
	})
})

module.exports=Router